package com.zcs.dao;


import com.zcs.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Author : zcs
 * Data :  2021/8/20 16:30
 */
public interface BookMapper {

    //增加一本书
    int addBook(Books books);
    //删除一本书
    int deleteBookById(int id);
    //更新一本书
    int updateBook(Books books);
    //查询一本书
    Books queryBookById(@Param("bookID") int id);
    //查询全部书
    List<Books> queryAllBook();
    //查询书籍
    List<Books> queryBookByName(@Param("bookName") String bookName);
}
